package com.aaa.service.tester.impl;


import com.aaa.dao.tester.TestResultDao;
import com.aaa.entity.tester.TestResult;
import com.aaa.service.tester.TestResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TestResultFpa)表服务实现类
 *
 * @author makejava
 * @since 2022-09-02 19:16:15
 */
@Service("testResultFpaService")
public class TestResultServiceImpl implements TestResultService {
    @Autowired
    private TestResultDao testResultDao;

    /**
     * 新增数据
     *
     * @param testResultFpa 实例对象
     * @return int
     */

    @Override
    public int insertFPA(List<TestResult> testResultFpa) {
        int test=testResultDao.insertBatchFPA(testResultFpa);
        return test;
    }

        /**
     * 新增数据
     *
     * @param testResultFpa 实例对象
     * @return int
     */

    @Override
    public int insertSDS(List<TestResult> testResultFpa) {
        int test=testResultDao.insertBatchSDS(testResultFpa);
        return test;
    }

        /**
     * 新增数据
     *
     * @param testResultFpa 实例对象
     * @return int
     */

    @Override
    public int insertSAS(List<TestResult> testResultFpa) {
        int test=testResultDao.insertBatchSAS(testResultFpa);
        return test;
    }

        /**
     * 新增数据
     *
     * @param testResultFpa 实例对象
     * @return int
     */

    @Override
    public int insertSCL(List<TestResult> testResultFpa) {
        int test=testResultDao.insertBatchSCL(testResultFpa);
        return test;
    }

        /**
     * 新增数据
     *
     * @param testResultFpa 实例对象
     * @return int
     */

    @Override
    public int insertMHT(List<TestResult> testResultFpa) {
        int test=testResultDao.insertBatchMHT(testResultFpa);
        return test;
    }


    @Override
    public int updateStatus(int id) {
        return testResultDao.updateStatus(id);
    }


}
